﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="UserLogin" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>HCMS后台管理登录</title>
    <link href="Style/main.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript" type="text/javascript">
function checkform()
{
    if (formData.txb_username.value=="")
   {
    alert("请输入用户名！");
    formData.txb_username.focus();
    return false;  
   } 
   if (formData.txb_pwd.value=="")
   {
    alert("请输入密码！");
    formData.txb_pwd.focus();
    return false;  
   } 
}
</script>
<body>
    <form id="formData" runat="server" onsubmit="return checkform();">
    <div>
        <table style="width: 100%">
            <tr>
                <td colspan="2" style="height: 230px; text-align: right">
                </td>
            </tr>
            <tr>
                <td  style="text-align: right; width: 43%;height: 28px;">
                    用户名：</td>
                <td>
                    <asp:TextBox ID="txb_username" runat="server" Width="150px" CssClass="text_line"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txb_username"
                        ErrorMessage="请输入用户名"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td  style="text-align: right; width: 43%; height: 28px;">
                    密码：</td>
                <td style="height: 28px" >
                    <asp:TextBox ID="txb_pwd" runat="server" TextMode="Password" Width="150px" CssClass="text_line"></asp:TextBox>
                    <span style="color: #003399"><a href="passback.aspx">忘记密码？</a><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txb_pwd"
                        ErrorMessage="请输入密码"></asp:RequiredFieldValidator>
                        <asp:Label ID="errmsg" runat="server"></asp:Label></span></td>
            </tr>
           <tr>
                <td style="text-align: center; height: 28px;" colspan="2">
                    <span style="color: #003399"></span>
                    <asp:RadioButtonList ID="cookiesave" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">不保存</asp:ListItem>
                        <asp:ListItem Value="1">保存一天</asp:ListItem>
                        <asp:ListItem Value="30">保存一个月</asp:ListItem>
                        <asp:ListItem Value="365">保存一年</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr> 
            <tr>
                <td style="text-align: right; width: 43%;height: 28px;">
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;
                    <asp:Button ID="btn_submit" runat="server" Text="登录" OnClick="btn_submit_Click" />
                <input id="Reset1" type="reset" value="重置" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>